home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libhesiod0.config < prev    next >
Encoding:
Text File  |  2009-03-18  |  694 b   |  30 lines

  1. #!/bin/sh -e
  2.  
  3. # Source debconf library.
  4. . /usr/share/debconf/confmodule
  5. if [ -f /etc/hesiod.conf ]; then
  6.     . /etc/hesiod.conf || true
  7.     if [ "$lhs" ]; then
  8.         db_set hesiod/lhs $lhs
  9.     fi
  10.     if [ "$rhs" ]; then
  11.         db_set hesiod/rhs $rhs
  12.     fi
  13.     if [ "$classes" ]; then
  14.         db_set hesiod/classes $classes
  15.     fi
  16. elif [ -f /etc/resolv.conf ]; then
  17.     rhs=`sed -n -e's/^[[:space:]]*search[[:space:]]\+\([^[:space:]]\+\)\([[:space:]]\+.*$\)*/\1/p' \
  18.         < /etc/resolv.conf | head -n 1`
  19.     if [ "$rhs" ]; then
  20.         if test "$rhs" = "mit.edu"; then
  21.             rhs=athena.mit.edu
  22.         fi
  23.         db_set hesiod/rhs ".$rhs"
  24.     fi
  25. fi
  26. db_input low hesiod/rhs || true
  27. db_input low hesiod/lhs || true
  28. db_input low hesiod/classes || true
  29. db_go || true
  30.